{# **
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * #}

{% set legacyBaseLayout = 'light_display_layout.tpl' %}
{% extends '@PrestaShop/Admin/layout.html.twig' %}

{% block stylesheets %}
  {{ parent() }}
  <link rel="stylesheet" href="{{ asset('themes/new-theme/public/product' ~ rtl_suffix ~ '.css') }}" type="text/css"
        media="all">
{% endblock %}

{% block content %}
  {{ form_start(
    bulkCombinationForm,
    {attr: {
      class: 'combination-page ' ~ bulkCombinationForm.vars.attr.class|default(''),
      'data-bulk-chunk-size': 10,
      'data-progress-title': 'Editing %total% combinations'|trans({}, 'Admin.Catalog.Feature'),
      'data-progress-message': 'Editing %done%/%total% combinations'|trans({}, 'Admin.Catalog.Feature'),
      'data-close-label': 'Close'|trans({}, 'Admin.Catalog.Feature'),
      'data-stop-processing': 'Stop processing'|trans({}, 'Admin.Catalog.Feature'),
      'data-errors-message': '%error_count% errors occurred. You can download the logs for future reference.'|trans({}, 'Admin.Catalog.Feature'),
      'data-back-to-processing': 'Back to processing'|trans({}, 'Admin.Catalog.Feature'),
      'data-download-error-log': 'Download error log'|trans({}, 'Admin.Catalog.Feature'),
      'data-view-error-log': 'View %error_count% error logs'|trans({}, 'Admin.Catalog.Feature'),
      'data-view-error-title': 'Error log'|trans({}, 'Admin.Catalog.Feature'),
    }}
  ) }}
  {{ form_row(bulkCombinationForm) }}
  {{ form_end(bulkCombinationForm) }}
{% endblock %}

{% block javascripts %}
  {{ parent() }}

  <script src="{{ asset('themes/new-theme/public/combination_bulk.bundle.js') }}"></script>
{% endblock %}
